﻿
using System.Windows;
using System.Windows.Controls;

namespace KinonekoSoftware.Studio.Pages.Instances.Characters
{

    public partial class CharacterEditorView
    {
        public CharacterEditorView()
        {
            InitializeComponent();
        }

        protected override void OnViewModelMessaging(object parameter)
        {
            if (parameter is SnapshotMessage snapshotMessage)
            {
                //
                // 这里会有截图偏移的现象，所以必须保证 ScrollViewer的偏移为0
                ScrollViewer.ScrollToTop();
                
                //
                // 
                snapshotMessage.Callback(Container);
            }
            
        }
    }
}